xen/arm: Correctly implement domain_page_map_to_mfn
authorJulien Grall <julien.grall@linaro.org>
Wed, 5 Feb 2014 14:16:34 +0000 (14:16 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 6 Feb 2014 12:50:43 +0000 (12:50 +0000)
commit65f3c7ef39e197fe90e2440730292f291a86cf98
tree1a5b95d1ef8962c49b964b527c7be4a4cab2f4b7
parent0ddaefffbfed3512600f67adb2a26523956cb438
xen/arm: Correctly implement domain_page_map_to_mfn

The function domain_page_map_to_mfn can be used to translate a virtual
address mapped by both map_domain_page and map_domain_page_global.
The former is using vmap to map the mfn, therefore domain_page_map_to_mfn
will always fail because the address is not in DOMHEAP range.

Check if the address is in vmap range and use __pa to translate it.

This patch fix guest shutdown when the event fifo is used.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: George Dunlap <george.dunlap@citrix.com>
xen/arch/arm/mm.c